//logs.js
var app = getApp();
import Api from '../../../api/api.js';
const api = new Api();
Page({
  data: {
    dataList: [],
  },
  onLoad: function (options) {
   var basesId = options.basesId;
   this.getListData(basesId);
  },
  getListData(basesId) {
    var _this = this;
    var map = {};
    map.userId = app.USER_ID();
    map.basesId = basesId;
    api.getRequestData(app.mineBFGoodsListUrl, map, false, "POST").then(res => {
      if (res.data.errorCode == 0) {
        var list = res.data.model;
        console.log("list====",JSON.stringify(list));
        _this.setData({
          dataList:list
        });

      } else {
        wx.showToast({
          title: res.data.errorMsg,
          icon: 'none',
          duration: 1500
        });
      }
    });
  },
  
})
